//
//  AIActionView.h
//  AIActionViewDemo
//
//  Created by telen on 2016/10/12.
//  Copyright © 2016年 telen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AIActionView : UIView
/**请把子视图放此view*/
@property(nonatomic,readonly)UIView* contentView;
/**点击回调*/
@property(nonatomic,strong)void(^clicked_tapCallBack)(AIActionView* aaview);
/**消失后回调*/
@property(nonatomic,strong)void(^did_unShow_and_remove)(AIActionView* aaview);
/**随机生成的点，距离四边, 默认50*/
@property(nonatomic,assign)CGFloat movePod;
/**暂停动画时，不自动消失*/
@property(nonatomic,assign)BOOL keepForPause;
/**自动消失的时间，60‘*/
@property(nonatomic,assign)CGFloat unShowTil;

//
/**获得AIActionView对象*/
+ (instancetype)aiActionViewWidthSize:(CGSize)size superView:(UIView*)superView;

/**随机移动*/
- (void)showRandom_movingRandom;

/**渐隐消失，移除对象*/
- (void)unShow_and_remove;


/**是否动画中*/
- (BOOL)isanimating;

/**暂停动画*/
- (void)pauseAni;

/**恢复动画*/
- (void)resumeAni;

@end
